package com.signway.constant;

/*
 * -----------------------------------------------------------------
 * Copyright (C) 2011-2018, by your Signway, All rights reserved.
 * -----------------------------------------------------------------
 *
 * ProjectName: Droid
 *
 * Author: Administrator
 *
 * Email: ##.##@Signway.cn
 *
 * Description:
 *
 * -----------------------------------------------------------------
 * 2018/8/6 0006 :
 * -----------------------------------------------------------------
 */


public final class Econfig {
    public static final int Econfig_System_Version_Type = 0;   // 0 for version B, 1 for version A,  2 for version S
    public static final int Econfig_System_Lock_Type = 0;      // 0 for 5180, 1 for 5151
    public static final int Econfig_System_File_Server_Used = 1;   //0 for only local server, 1 for add file server
    public static final int Econfig_System_Board_Type = 0;  //0 for 5180, 1 for 5161
    public static final int Econfig_System_Custom_HuaDu = 0;   //1�����ȴ�ý
    public static final int Econfig_System_Single_Only = 0;  //1 for single version
    public static final int Econfig_System_Custom_Id = 1001; //1001 for Signway, 1002 for GoodView ,1003 for 3Q

    public static final int Econfig_System_Custom_PlatForm = 1;
    public static final int Econfig_System_Custom_PlatForm_0920_TOUCH = 0; //0:底层无触摸监听，1有触摸监听
    public static final String Econfig_System_Custom_PlatForm_Version = "chenwf.20141205.161939"; //互动最早的版本，还有getLastTouchTime
    /**
     * 鉴权 文件存储方式
     **/
    public static final int Econfig_System_Auth_Way = 0;   //0:for DM2016, 1:for 加密file
    public static final int Econfig_System_Is_Philips = 0;    //0:standard  1:Philips
    public static final boolean Econfig_System_Is_Test = false;
    public static boolean ECONFIG_SYSTEM_IS_OPEN_PINJIE = false;   //拼接功能开关
    public static boolean ECONFIG_SYSTEM_IS_FIRMWARE_5_1 = false;

    public static final int Econfig_System_Version_Type_B = 0;
    public static final int Econfig_System_Version_Type_A = 1;
    public static final int Econfig_System_Version_Type_S = 2;

    public static boolean Econfig_System_Is_Firmware_5_1 = true;

    public static int Econfig_System_Is_Touch = 1;   //1:touch  0:standard


    /**
     * 获取板卡ID
     *
     * @return 0:1001， 1:1002
     */
    public static int getBoardId() {
        if (Econfig_System_Board_Type == 0) {
            return 1001;
        }
        return 1002;
    }


    /*
     * B for file encrypt B
     * A S for file encrypt A
     */
    public static int getFileCertVersion() {
        if (Econfig_System_Version_Type == Econfig_System_Version_Type_B) {
            return Econfig_System_Version_Type_B;
        } else {
            return Econfig_System_Version_Type_A;
        }
    }

}
